/**
create: wenhui
time: 2024.8.21
to:用户
 */

const express = require('express')
const router = express.Router()

// 导入使用商品处理模块
const user_handler = require('../router_handler/user')

// 用户登录
router.post('/login', user_handler.login)

// 获取用户信息
router.get('/getUserInfo', user_handler.getUserInfo)
// 新增用户
router.post('/setUserInfo', user_handler.setUserInfo)
// 修改用户
router.put('/setUserInfo', user_handler.setUserInfo)
// 删除用户
router.delete('/setUserInfo', user_handler.setUserInfo)
// 修改用户状态
router.put('/setUserInfo/update_status/:id', user_handler.setUserInfo)

// 获取用户列表
router.get('/getUserList', user_handler.getUserList)

// 获取会员等级列表
router.get('/getUserLevel', user_handler.getUserLevel)
// 新增会员等级
router.post('/setUserLevel', user_handler.setUserLevel)
// 修改会员等级
router.put('/setUserLevel', user_handler.setUserLevel)
// 删除会员等级
router.delete('/setUserLevel', user_handler.setUserLevel)
// 修改会员等级状态
router.put('/setUserLevel/update_status/:id', user_handler.setUserLevel)


module.exports = router